package com.liangZiVip.regionalAgentSystemApi.common;

public class ResponseEntity  implements java.io.Serializable {
    private  Integer code;
    private  String msg;
    private  Object data;

    public  ResponseEntity(ResponseCode responseCode){
        this.code = responseCode.getCode();
        this.msg = responseCode.getMsg();
    }

    public ResponseEntity(ResponseCode responseCode,Object data){
        this(responseCode);
        this.data=data;
    }

    public Integer getCode(){
        return  code;
    }

    public String getMsg(){
        return  msg;
    }

    public Object getData() {
        return data;
    }
}
